package com.nian.mongodb.service.dao;

import com.nian.mongodb.service.model.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 用途：部门 Dao
 * 开发：zhangmj
 * 日期：2020/4/12 0012 18:57
 */
public interface DepartmentRepository extends MongoRepository<Department, String> {

    Department findByCode(String code);

    List<Department> findByName(String name);
}
